package com.jic.member.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("节点模板信息")
public class TripBranchNodeDetailResponse {

    @ApiModelProperty("nodeId")
    private Long nodeId;

    @ApiModelProperty("模板名称")
    private String name;

    @ApiModelProperty("模板名称")
    private String nodeName;

    @ApiModelProperty("旅程分支节点code")
    private String nodeCode;

    @ApiModelProperty("节点模板id")
    private Long nodeTemplateId;

    @ApiModelProperty("节点模板code")
    private String nodeTemplateCode;

    @ApiModelProperty("下级可连节点")
    private String nextTemplateCodes;

    @ApiModelProperty("旅程分支id")
    private Long branchId;

    @ApiModelProperty("上级节点id")
    private Long parentId;

    @ApiModelProperty("坐标")
    private String top;

    @ApiModelProperty("坐标")
    private String left;

    @ApiModelProperty("节点变量")
    private String nodeVariable;

    @ApiModelProperty("事件类型")
    private Integer eventType;

    @ApiModelProperty("事件code")
    private String eventCode;

    @ApiModelProperty("分支条件：0、无，1、是，2、否")
    private Integer branchCondition;

    @ApiModelProperty("旅程id")
    private Long tripId;

    @ApiModelProperty("旅程子节点")
    private List<Long> chirldrenId;

    @ApiModelProperty("事件判断下级分支条件")
    private List<Map<String,Object>> branchConditionList;

    @ApiModelProperty("模板icon")
    private String ico;


}
